package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.SysFavoriteShare;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class SysFavoriteShareProxy extends AbstractProxyEntity<SysFavoriteShareProxy, SysFavoriteShare> {

    private static final Class<SysFavoriteShare> entityClass = SysFavoriteShare.class;

    public static final SysFavoriteShareProxy TABLE = createTable().createEmpty();

    public static SysFavoriteShareProxy createTable() {
        return new SysFavoriteShareProxy();
    }

    public SysFavoriteShareProxy() {
    }

    /**
     * 共享ID
     * {@link SysFavoriteShare#getId}
     */
    public SQLStringTypeColumn<SysFavoriteShareProxy> id() {
        return getStringTypeColumn("id");
    }

    /**
     * 收藏ID
     * {@link SysFavoriteShare#getFavId}
     */
    public SQLStringTypeColumn<SysFavoriteShareProxy> favId() {
        return getStringTypeColumn("favId");
    }

    /**
     * 访问的用户ID
     * {@link SysFavoriteShare#getUserId}
     */
    public SQLStringTypeColumn<SysFavoriteShareProxy> userId() {
        return getStringTypeColumn("userId");
    }

    /**
     * 访问的角色ID
     * {@link SysFavoriteShare#getRoleId}
     */
    public SQLStringTypeColumn<SysFavoriteShareProxy> roleId() {
        return getStringTypeColumn("roleId");
    }

    /**
     * 访问权限0是浏览, 1是编辑
     * {@link SysFavoriteShare#getPermission}
     */
    public SQLStringTypeColumn<SysFavoriteShareProxy> permission() {
        return getStringTypeColumn("permission");
    }

    /**
     * 备注
     * {@link SysFavoriteShare#getRemarks}
     */
    public SQLStringTypeColumn<SysFavoriteShareProxy> remarks() {
        return getStringTypeColumn("remarks");
    }

    @Override
    public Class<SysFavoriteShare> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public SysFavoriteShareProxyFetcher FETCHER = new SysFavoriteShareProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class SysFavoriteShareProxyFetcher extends AbstractFetcher<SysFavoriteShareProxy, SysFavoriteShare, SysFavoriteShareProxyFetcher> {

        public SysFavoriteShareProxyFetcher(SysFavoriteShareProxy proxy, SysFavoriteShareProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * 共享ID
         * {@link SysFavoriteShare#getId}
         */
        public SysFavoriteShareProxyFetcher id() {
            return add(getProxy().id());
        }

        /**
         * 收藏ID
         * {@link SysFavoriteShare#getFavId}
         */
        public SysFavoriteShareProxyFetcher favId() {
            return add(getProxy().favId());
        }

        /**
         * 访问的用户ID
         * {@link SysFavoriteShare#getUserId}
         */
        public SysFavoriteShareProxyFetcher userId() {
            return add(getProxy().userId());
        }

        /**
         * 访问的角色ID
         * {@link SysFavoriteShare#getRoleId}
         */
        public SysFavoriteShareProxyFetcher roleId() {
            return add(getProxy().roleId());
        }

        /**
         * 访问权限0是浏览, 1是编辑
         * {@link SysFavoriteShare#getPermission}
         */
        public SysFavoriteShareProxyFetcher permission() {
            return add(getProxy().permission());
        }

        /**
         * 备注
         * {@link SysFavoriteShare#getRemarks}
         */
        public SysFavoriteShareProxyFetcher remarks() {
            return add(getProxy().remarks());
        }

        @Override
        protected SysFavoriteShareProxyFetcher createFetcher(SysFavoriteShareProxy cp, AbstractFetcher<SysFavoriteShareProxy, SysFavoriteShare, SysFavoriteShareProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new SysFavoriteShareProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
